/**
 *******************************************************************************************************************************************
 * @file        dev_uart.h
 * @brief       调试日志串口打印
 * @details     /
 * @since       Change Logs:
 * Date         Author       Notes
 * 2022-12-08   lzh          the first version
 * 2023-02-23   lzh          优化 SWM34SCE 端口初始化配置流程
 * @remark		/
 *******************************************************************************************************************************************
 * @attention
 *
 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION
 * REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE
 * FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
 * OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN-
 * -ECTION WITH THEIR PRODUCTS.
 *
 * @copyright   2012 Synwit Technology
 *******************************************************************************************************************************************
 */
#ifndef __DEV_UART_H__
#define __DEV_UART_H__

#include "SWM341.h"

/**
 * @brief   配置串口打印调试日志的端口
 */
void uart_debug_port_init(void);

/**
 * @brief   初始化用作打印调试日志的串口
 */
void uart_debug_init(uint32_t bps);
void led_debug_init(void);
void uart_blue_init(void);
/**
 * @brief   串口发送数据
 * @param   uart_x    : 串口号
 * @param   src_buf   : 数据源
 * @param   num_bytes : 数据大小 / Bytes
 * @retval  /
 * @note    可自定义拓展为 类printf()方法
 */
void uart_send_msg(UART_TypeDef *uart_x, const uint8_t *src_buf, const uint32_t num_bytes);

#endif //__DEV_UART_H__
